Skip to content

CP-53843: tracing -- link internal subtasks traces#6991

Merged
robhoes merged 1 commit into
xapi-project:masterfrom
GabrielBuica:private/dbuica/CP-53843-tracing
Apr 15, 2026
Merged

CP-53843: tracing -- link internal subtasks traces#6991
robhoes merged 1 commit into
xapi-project:masterfrom
GabrielBuica:private/dbuica/CP-53843-tracing

Conversation

@GabrielBuica
Copy link
Copy Markdown
Contributor

exec_with_new_* function create orphaned traces for subtasks with parents not in the database.

This is meant to address this and link these spans to their correct parent.

`exec_with_new_*` function create orphaned traces for subtasks with
parents not in the database.

This is meant to address this and link these spans to their correct
parent.

Signed-off-by: Gabriel Buica <danutgabriel.buica@citrix.com>
@GabrielBuica GabrielBuica marked this pull request as ready for review April 8, 2026 14:37
@robhoes robhoes added this pull request to the merge queue Apr 15, 2026
Merged via the queue into xapi-project:master with commit 8eb47f7 Apr 15, 2026
16 checks passed
github-merge-queue Bot pushed a commit that referenced this pull request Apr 21, 2026
Builds on top of #6991

The session reuse logic in `xapi_session.ml` does work in this usecase,
sm calls are made with `pool=false`. So reimplement the logic so that we
use a single session for `sm_exec` per sr.

This is achieved by having a hashtable that maps SRs to a corresponding
session. The session is created the first time a particular SR needs it
and then get reused afterwards. The session gets recreated only if it
becomes invalid.

This should help the number of database calls during congestion times.

Passes BVT and BST.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants